package com.ruoyi.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.education.mapper.StudentRepeaterMapper;
import com.ruoyi.education.domain.StudentRepeater;
import com.ruoyi.education.service.IStudentRepeaterService;

/**
 * 留级学生Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
@Service
public class StudentRepeaterServiceImpl implements IStudentRepeaterService 
{
    @Autowired
    private StudentRepeaterMapper studentRepeaterMapper;

    /**
     * 查询留级学生
     * 
     * @param id 留级学生主键
     * @return 留级学生
     */
    @Override
    public StudentRepeater selectStudentRepeaterById(Long id)
    {
        return studentRepeaterMapper.selectStudentRepeaterById(id);
    }

    /**
     * 查询留级学生列表
     * 
     * @param studentRepeater 留级学生
     * @return 留级学生
     */
    @Override
    public List<StudentRepeater> selectStudentRepeaterList(StudentRepeater studentRepeater)
    {
        return studentRepeaterMapper.selectStudentRepeaterList(studentRepeater);
    }

    /**
     * 新增留级学生
     * 
     * @param studentRepeater 留级学生
     * @return 结果
     */
    @Override
    public int insertStudentRepeater(StudentRepeater studentRepeater)
    {
        return studentRepeaterMapper.insertStudentRepeater(studentRepeater);
    }

    /**
     * 修改留级学生
     * 
     * @param studentRepeater 留级学生
     * @return 结果
     */
    @Override
    public int updateStudentRepeater(StudentRepeater studentRepeater)
    {
        return studentRepeaterMapper.updateStudentRepeater(studentRepeater);
    }

    /**
     * 批量删除留级学生
     * 
     * @param ids 需要删除的留级学生主键
     * @return 结果
     */
    @Override
    public int deleteStudentRepeaterByIds(Long[] ids)
    {
        return studentRepeaterMapper.deleteStudentRepeaterByIds(ids);
    }

    /**
     * 删除留级学生信息
     * 
     * @param id 留级学生主键
     * @return 结果
     */
    @Override
    public int deleteStudentRepeaterById(Long id)
    {
        return studentRepeaterMapper.deleteStudentRepeaterById(id);
    }
}
